<?php
/**
 * this is cloud search http request class test file
 *
 *
 */
require_once 'index.php';
require_once 'Framework/TestCase.php';
class MysqlTest extends PHPUnit_Framework_TestCase 
{
    public function testRowCount()
    {
        $db = NICED_DBFactory::create("default");
        $count = 1000000;
        //$count = 1;
        for ($i = 0; $i < $count; $i++)
        {
            $sql = "insert into test(name) values('abc')";
            $rs = $db->query($sql);
        }
        $this->assertTrue($rs->isSuccess());
    }

    /**
     * execute before class
     *
     */
    public static function setUpBeforeClass()
    {

    }

    /**
     * execute before case
     *
     */
    protected function setUp()
    {
    }

    /**
     *
     * execute before assert
     */
    protected function assertPreConditions()
    {

    }

    /**
     *
     * execute after assert
     */
    protected function assertPostConditions()
    {

    }

    /**
     * execute after case
     */
    protected function tearDown()
    {

    }

    /**
     * execute after class
     *
     */
    public static function tearDownAfterClass()
    {

    }


}//end class
